package com.jobs.stringFormat;

/**
 * @Author 王博
 * @DateTime 2024-08-06 16:54
 */
public class StringFormatDemo {
    public static void main(String[] args) {
        String cYouBaseUrl = "ssssDDDD";
        String consumerPageId = "dddd";
        String mobile = "1111";
        String id = "222";
        String zcFormat = String.format("%s?consumerPageId=%s&clientUserMobileNumber=%s&clientUserId=%s", cYouBaseUrl, consumerPageId, mobile, id);
        String dxFormat = String.format("%S?consumerPageId=%S&clientUserMobileNumber=%S&clientUserId=%S", cYouBaseUrl, consumerPageId, mobile, id);
        System.out.println(zcFormat);
        System.out.println(dxFormat);
    }
}
